package com.tms.basic.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tms.basic.pojo.domain.Department;

public interface DepartmentService extends IService<Department> {
    /**
     * 分页查询部门列表
     * @param page 分页参数
     * @param department 查询条件
     * @return 分页结果
     */
    Page<Department> listDepartments(Page<Department> page, Department department);
    
    /**
     * 创建部门
     * @param department 部门信息
     * @return 创建结果
     */
    boolean createDepartment(Department department);
    
    /**
     * 更新部门信息
     * @param department 部门信息
     * @return 更新结果
     */
    boolean updateDepartment(Department department);
    
    /**
     * 删除部门
     * @param id 部门ID
     * @return 删除结果
     */
    boolean deleteDepartment(Long id);
}